package com.quad.innovators.salesease.service.warehouse;

import com.baomidou.mybatisplus.extension.service.IService;
import com.quad.innovators.salesease.common.result.PageResultBean;
import com.quad.innovators.salesease.model.entity.warehouse.VehicleBringScanCode;
import com.quad.innovators.salesease.model.form.warehouse.VehicleBringScanCodeForm;
import com.quad.innovators.salesease.model.vo.warehouse.VehicleBringGoodsVO;

import java.util.List;

/**
 * @author : shanshan.li
 * @createTime : 2025/4/3 09:39
 * @Version : 1.0 
 */
public interface VehicleBringScanCodeService extends IService<VehicleBringScanCode> {
    /**
     * 根据车辆带货code, 获取车辆扫码列表
     * @param vehicleBringGoodsCode 车辆带货code
     * @return 返回车辆扫码列表
     */
    List<VehicleBringScanCodeForm> getListByVehicleCode(String vehicleBringGoodsCode);

    /**
     * 根据车辆带货code, 获取车辆扫码列表
     * @param vehicleBringGoodsCode 车辆带货code
     * @return 返回车辆扫码列表
     */
    List<VehicleBringScanCodeForm> getListByVehicleCode(String vehicleBringGoodsCode, Integer scanType);

    /**
     * 新城车辆扫码
     * @param form 车辆扫码form
     * @return 返回是否成功
     */
    String save(VehicleBringScanCodeForm form);

    /**
     * 删除车辆扫码
     * @param code 要删除的车辆扫码code
     * @return 返回是否成功
     */
    boolean delete(String code);

    /**
     * 获取车辆扫码详情
     * @param code 车辆扫码code
     * @return 返回扫码详情
     */
    VehicleBringScanCodeForm getDetail(String code);
}
